<?php
/**
 * @title 字符串元素`+=`
 * @author start2004
 */

// ini_set("memory_limit", "128M");


class Solution {

    /**
     * @title 字符串元素`+=`
     * @author start2004
     * @since 2020-08-13 Created
     *
     * @return mixed
     */
    function main() {
        $str = "123456";
        $str[2] += 1;
        // $str[2] = $str[2]+1;

        /**
         * @return
         */
        return $str;
    }
}


/**
 * @url http://127.0.0.1/leetcode/202008/2020.08.13_6.php
 */
$datas = [
    1,
];

include_once dirname(__DIR__) . DIRECTORY_SEPARATOR ."xhprof.php";
$xhprof = new Xhprof();
foreach ($datas as $data){
    var_dump($data);

    $obj = new Solution();
    $result = $obj->main();
    var_dump($result);
    echo str_repeat("<br>", 3);
}
$xhprof->end();
